/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/

#ifndef BAREOS_DIRD_AUTHENTICATE_H_
#define BAREOS_DIRD_AUTHENTICATE_H_

namespace directordaemon {

class StorageResource;
class UaContext;

bool AuthenticateWithStorageDaemon(BareosSocket* sd,
                                   JobControlRecord* jcr,
                                   StorageResource* store);
bool AuthenticateWithFileDaemon(JobControlRecord* jcr);
bool AuthenticateFileDaemon(BareosSocket* fd, char* client_name);

} /* namespace directordaemon */

#endif  // BAREOS_DIRD_AUTHENTICATE_H_
